home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / AGSTUT2.ZIP / AGSTUT2.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1995-04-16  |  2KB  |  162 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 3.1O (Encryption type I) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     String   STRING001
  20.     String   STRING002
  21.     Int      INT001
  22.     Declare  Procedure PROC001(Integer INTEGER001)
  23.     Declare  Procedure PROC002(Integer INTEGER002)
  24.     Declare  Procedure PROC003()
  25.  
  26. ;------------------------------------------------------------------------------
  27.  
  28.     StartDisp 1
  29.     INT001 = 1
  30.     :LABEL001
  31.     Cls
  32.     DispFile PPEPath() + "MENU", 1 + 4
  33.     PROC001(INT001)
  34.     While (1) Do
  35.         STRING001 = Inkey()
  36.         If (STRING001 <> "") Then
  37.             If (STRING001 == "DOWN") Then
  38.                 PROC002(INT001)
  39.                 INT001 = INT001 + 1
  40.                 If (INT001 == 3) INT001 = 4
  41.                 If (INT001 == 6) INT001 = 1
  42.                 PROC001(INT001)
  43.                 Continue
  44.             Endif
  45.             If (STRING001 == "UP") Then
  46.                 PROC002(INT001)
  47.                 INT001 = INT001 - 1
  48.                 If (INT001 == 3) INT001 = 2
  49.                 If (INT001 == 0) INT001 = 5
  50.                 PROC001(INT001)
  51.                 Continue
  52.             Endif
  53.             If (STRING001 == Chr(13)) Then
  54.                 If (INT001 == 1) Then
  55.                     Goto LABEL001
  56.                     Goto LABEL002
  57.                 Endif
  58.                 If (INT001 == 2) Then
  59.                     Goto LABEL001
  60.                     Goto LABEL002
  61.                 Endif
  62.                 If (INT001 == 4) Then
  63.                     Goto LABEL001
  64.                     Goto LABEL002
  65.                 Endif
  66.                 If (INT001 == 5) Then
  67.                     Goto LABEL001
  68.                 Endif
  69.                 :LABEL002
  70.                 Continue
  71.             Endif
  72.             If (STRING001 == Chr(27)) Then
  73.                 Break
  74.             Endif
  75.         Endif
  76.     EndWhile
  77.     End
  78.  
  79. ;------------------------------------------------------------------------------
  80.  
  81.     Procedure PROC001(Integer INTEGER001)
  82.  
  83.     AnsiPos 22, 11 + INTEGER001 - 1
  84.     STRING002 = ScrText(22, 11 + INTEGER001 - 1, 36, 1)
  85.     Print "@X1F", ScrText(22, 11 + INTEGER001 - 1, 36, 0)
  86.     PROC003()
  87.  
  88.     EndProc
  89.  
  90.  
  91. ;------------------------------------------------------------------------------
  92.  
  93.     Procedure PROC002(Integer INTEGER002)
  94.  
  95.     AnsiPos 22, 11 + INTEGER002 - 1
  96.     Print "@X0F", STRING002
  97.     PROC003()
  98.  
  99.     EndProc
  100.  
  101.  
  102. ;------------------------------------------------------------------------------
  103.  
  104.     Procedure PROC003()
  105.  
  106.     AnsiPos 1, 22
  107.     Color 0
  108.     Print " "
  109.     Backup 1
  110.  
  111.     EndProc
  112.  
  113.  
  114. ;------------------------------------------------------------------------------
  115. ;
  116. ; Usage report (before postprocessing)
  117. ;
  118. ; ■ Statements used :
  119. ;
  120. ;    1       End
  121. ;    1       Cls
  122. ;    1       Color 
  123. ;    23      Goto 
  124. ;    9       Let 
  125. ;    3       Print 
  126. ;    14      If 
  127. ;    1       DispFile 
  128. ;    1       StartDisp 
  129. ;    3       AnsiPos 
  130. ;    1       Backup 
  131. ;    3       EndProc
  132. ;
  133. ;
  134. ; ■ Functions used :
  135. ;
  136. ;    7       +
  137. ;    5       -
  138. ;    12      ==
  139. ;    1       <>
  140. ;    10      !
  141. ;    2       Chr()
  142. ;    1       Inkey()
  143. ;    1       PPEPath()
  144. ;    2       ScrText()
  145. ;
  146. ;------------------------------------------------------------------------------
  147. ;
  148. ; Analysis flags : No flag
  149. ;
  150. ;------------------------------------------------------------------------------
  151. ;
  152. ; Postprocessing report
  153. ;
  154. ;    0       For/Next
  155. ;    1       While/EndWhile
  156. ;    9       If/Then or If/Then/Else
  157. ;    0       Select Case
  158. ;
  159. ;------------------------------------------------------------------------------
  160. ;                 AEGiS Corp - Break the routines, code against the machines!
  161. ;------------------------------------------------------------------------------
  162.